package com.kamistoat.meimeimall.meimeimallorder.feign;

import com.kamistoat.meimeimall.common.To.productTo.SpuInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * 已弃用 Feign接口
 */
@FeignClient("meimeimall-product")
public interface ProductFeignService {
    @GetMapping("meimeimallproduct/skuinfo/updateCartPrice")
    BigDecimal updateCartPrice(@RequestParam Long skuId);

    /**
     * 根据skuId返回SpuId
     */
    @GetMapping("meimeimallproduct/skuinfo/spuByskuId")
    SpuInfoTo spuByskuId(@RequestParam Long skuId);
}
